﻿using DataLayer.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataLayer.Repositories
{
    public class SetTobBoxRepository : Repository<SetTopBox>
    {
        public SetTobBoxRepository(GameUPContext context) : base(context) { }

        public SetTopBox GetSetTopBoxByMAC(string MAC)
        {
            return _Collection.FirstOrDefault(stb => stb.MAC == MAC);
        }

    }
}
